package week7Midex;

public class PlaneProxy implements Plane {
    private Plane plane;

    public PlaneProxy() {
        this.plane = new PlaneImpl();
    }
    public PlaneProxy(Plane plane) {
        this.plane = plane;
    }

    @Override
    public void takeOff() {
        PlaneInAirport planeInAirport = new PlaneInAirport(this.plane);
        planeInAirport.schedule();
    }
}
